﻿using System;
using System.Collections.Generic;
using System.Linq;
using entities;
using context;
using DataAccessLibrary.DAL;
using System.Text;

namespace BusinessLogicLibrary
{
   public class CheckInModule
    {
       private readonly CheckinDAO _checkinDAO = new CheckinDAO();
       public List<CheckIn> GetCheckInByBookingId(int bookingId)
       {
           return _checkinDAO.SelectCheckInByBookingId(bookingId);
       }

       public bool RemoveCheckIn(int checInId)
       {
           return _checkinDAO.DeleteCheckIn(checInId);
       }

       public CheckIn GetCheckIn(int checkinId)
       {
           return _checkinDAO.SelectCheckIn(checkinId);
       }

       public List<CheckIn> GetCheckInIncome()
       {
           return _checkinDAO.SelectCheckInIncome();
       }
    }
}
